package com.tbvtc.agriculturalcreditchainserver2025.service;

import com.tbvtc.agriculturalcreditchainserver2025.dto.User.LoginByCaptchaDto;
import com.tbvtc.agriculturalcreditchainserver2025.dto.User.LoginByPasswordDto;
import com.tbvtc.agriculturalcreditchainserver2025.dto.User.UpdatePasswordDto;
import com.tbvtc.agriculturalcreditchainserver2025.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tbvtc.agriculturalcreditchainserver2025.utils.Result;
import com.tbvtc.agriculturalcreditchainserver2025.vo.farmerVo.loginVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author shiyuhao
 * @since 2025-03-25
 */
public interface IUserService extends IService<User> {

    loginVo loginByPassword(LoginByPasswordDto loginDto);

    loginVo loginByCaptcha(LoginByCaptchaDto loginDto);


    Result updatePassword(UpdatePasswordDto updatePassword);

    Result getTokenTime(String  token);
}
